🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / feature / widget / src / main / kotlin / org / meshtastic / feature / widget / RefreshLocalStatsAction.kt
Displaying Raw • Download
feature/widget/src/main/kotlin/org/meshtastic/feature/widget/RefreshLocalStatsAction.kt 936be3998f0fe49f58b8a0f9ff2c01e3cbd85609 (936be399) Text, 1.91 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.feature.widget
Tff7b72import T7ee787android.content.Context
Tff7b72import T7ee787androidx.glance.GlanceId
Tff7b72import T7ee787androidx.glance.action.ActionParameters
Tff7b72import T7ee787androidx.glance.appwidget.action.ActionCallback
Tff7b72import T7ee787co.touchlab.kermit.Logger
Tff7b72import T7ee787org.koin.core.component.KoinComponent
Tff7b72import T7ee787org.koin.core.component.inject
Tff7b72import T7ee787org.meshtastic.core.model.TelemetryType
Tff7b72import T7ee787org.meshtastic.core.repository.CommandSender
Tff7b72import T7ee787org.meshtastic.core.repository.NodeManager
Tff7b72class T56d364RefreshLocalStatsAction Tb4b4b4:
Te6edf3ActionCallbackTb4b4b4,
Te6edf3KoinComponent Tb4b4b4{
Tff7b72private Tff7b72val Te6edf3commandSenderTb4b4b4: Te6edf3CommandSender Tff7b72by Te6edf3injectTb4b4b4(Tb4b4b4)
Tff7b72private Tff7b72val Te6edf3nodeManagerTb4b4b4: Te6edf3NodeManager Tff7b72by Te6edf3injectTb4b4b4(Tb4b4b4)
Tff7b72override Tff7b72suspend Tff7b72fun Td2a8ffonActionTb4b4b4(Te6edf3contextTb4b4b4: Te6edf3ContextTb4b4b4, Te6edf3glanceIdTb4b4b4: Te6edf3GlanceIdTb4b4b4, Te6edf3parametersTb4b4b4: Te6edf3ActionParametersTb4b4b4) Tb4b4b4{
Tff7b72val Te6edf3myNodeNum Tff7b72= Te6edf3nodeManagerTb4b4b4.Te6edf3myNodeNumTb4b4b4.Te6edf3value
Tff7b72if Tb4b4b4(Te6edf3myNodeNum Tff7b72=Tff7b72= Tff7b72nullTb4b4b4) Tb4b4b4{
Te6edf3LoggerTb4b4b4.Te6edf3w Tb4b4b4{ Ta5d6ff"Ta5d6ffRefreshLocalStatsAction: myNodeNum is null, skipping telemetry requestTa5d6ff" Tb4b4b4}
Tff7b72return
Tb4b4b4}
Te6edf3commandSenderTb4b4b4.Te6edf3requestTelemetryTb4b4b4(Te6edf3commandSenderTb4b4b4.Te6edf3generatePacketIdTb4b4b4(Tb4b4b4)Tb4b4b4, Te6edf3myNodeNumTb4b4b4, Te6edf3TelemetryTypeTb4b4b4.Te6edf3LOCAL_STATSTb4b4b4.Te6edf3ordinalTb4b4b4)
Te6edf3commandSenderTb4b4b4.Te6edf3requestTelemetryTb4b4b4(Te6edf3commandSenderTb4b4b4.Te6edf3generatePacketIdTb4b4b4(Tb4b4b4)Tb4b4b4, Te6edf3myNodeNumTb4b4b4, Te6edf3TelemetryTypeTb4b4b4.Te6edf3DEVICETb4b4b4.Te6edf3ordinalTb4b4b4)
Tb4b4b4}
Tb4b4b4}
Served by rngit 1.5.0 - Generated in 0.07s